﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <mappings>
    <mapping type="Neits.PersistenceService.PersistenceServiceConfiguration, Neits.PersistenceService" xpath="/configuration/PersistenceServiceConfiguration"/>
    <mapping type="Neits.PersistenceService.Providers.HibernateConfiguration, Neits.PersistenceService" xpath="/configuration/HibernateConfiguration"/>
    <mapping type="Projecturo.ProjecturoClient.ViewModel.ViewModelManagerConfiguration, Projecturo.ProjecturoClient" xpath="/configuration/ViewModelManagerConfiguration"/>
  </mappings>

  <PersistenceServiceConfiguration>
    <Providers>
      <string>Neits.PersistenceService.Providers.HibernateProvider, Neits.PersistenceService</string>
    </Providers>
  </PersistenceServiceConfiguration>

  <ViewModelManagerConfiguration>
    <ViewModels>
      <ViewModelConfigurationItem modelType="Projecturo.ProjecturoClient.Test.TestData.TestModel, Projecturo.ProjecturoClient.Test" viewModelType="Projecturo.ProjecturoClient.Test.TestData.TestViewModel, Projecturo.ProjecturoClient.Test"/>
      <ViewModelConfigurationItem name="TestViewModel" viewModelType="Projecturo.ProjecturoClient.Test.TestData.TestViewModel, Projecturo.ProjecturoClient.Test"/>
    </ViewModels>
  </ViewModelManagerConfiguration>

  <HibernateConfiguration>
    <HibernateSettings>
      <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
        <session-factory>
          <!-- SQL SERVER Configuration -->
          <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
          <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
          <property name="connection.connection_string">Server=(local)\SQL2008ADV;initial catalog=projecturo_test;Integrated Security=SSPI;</property>
          <property name="show_sql">false</property>
          <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
          <property name="use_outer_join">true</property>
          <mapping resource="Projecturo.Model.Projecturo.Model.hbm.xml" assembly="Projecturo.Model" />
        </session-factory>
      </hibernate-configuration>
    </HibernateSettings>
  </HibernateConfiguration>

</configuration>